const PENDING = 'pending'; // 等待 状态
const FULFILLED = 'fulfilled'; // 成功 状态
const REJECTED = 'rejected'; // 失败 状态

class myPromise {
  constructor(executor) {
    executor();
  }
  // 当前的状态
  state = PENDING;
  // 结果值
  result = undefined;
}
